package com.ruoyi.nongjt.service.impl;


import com.ruoyi.nongjt.domain.Work;
import com.ruoyi.nongjt.mapper.WorkMapper;
import com.ruoyi.nongjt.service.WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工作服务实现类
 */
@Service
public class WorkServiceImpl implements WorkService {

    @Autowired
    private WorkMapper workMapper;

    @Override
    public List<Work> selectWorkList(Work work) {
        return workMapper.selectWorkList(work);
    }

    @Override
    public Work selectWorkById(Long id) {
        return workMapper.selectWorkById(id);
    }

    @Override
    public int insertWork(Work work) {
        return workMapper.insertWork(work);
    }

    @Override
    public int updateWork(Work work) {
        return workMapper.updateWork(work);
    }

    @Override
    public int deleteWorkById(Long id) {
        return workMapper.deleteWorkById(id);
    }
}
